home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_kdelibs.idb / usr / freeware / kde / include / kfmclient_ipc.h.z / kfmclient_ipc.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  2.6 KB  |  98 lines

  1. /* This file is part of the KDE libraries
  2.     Copyright (C) 1997 Torben Weis (weis@kde.org)
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public License
  15.     along with this library; see the file COPYING.LIB.  If not, write to
  16.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.     Boston, MA 02111-1307, USA.
  18. */
  19. // This file has been created by ipcc.pl.
  20. // (c) Torben Weis
  21. //     weis@stud.uni-frankfurt.de
  22.  
  23. #ifndef KfmIpc_h
  24. #define KfmIpc_h
  25.  
  26. #include <ctype.h>
  27. #include <ksock.h>
  28. #include <qobject.h>
  29. #include "kfmipc.h"
  30. #include <stdlib.h>
  31. #include <stdio.h>
  32. #include <unistd.h>
  33.  
  34. class KfmIpc : public QObject
  35. {
  36.     Q_OBJECT
  37. public:
  38.     KfmIpc( char * _path );
  39.     ~KfmIpc();
  40.  
  41.     bool isConnected();
  42.  
  43. public slots:
  44.     void refreshDesktop();
  45. public slots:
  46.     void refreshDirectory(const char* _url);
  47. public slots:
  48.     void openURL(const char* _url);
  49. public slots:
  50.     void openProperties(const char* _url);
  51. public slots:
  52.     void list(const char* _url);
  53. public slots:
  54.     void exec(const char* _url, const char* _binding);
  55. public slots:
  56.     void copy(const char* _src, const char* _dest);
  57. public slots:
  58.     void move(const char* _src, const char* _dest);
  59. public slots:
  60.     void moveClient(const char* _src, const char* _dest);
  61. public slots:
  62.     void copyClient(const char* _src, const char* _dest);
  63. public slots:
  64.     void sortDesktop();
  65. public slots:
  66.     void auth(const char* _password);
  67. public slots:
  68.     void selectRootIcons(int _x, int _y, int _w, int _h, bool _add);
  69. signals:
  70.     void finished();
  71. private:
  72.     void parse_finished( char *_data, int _len );
  73. signals:
  74.     void error(int _kerror, const char* _text);
  75. private:
  76.     void parse_error( char *_data, int _len );
  77. signals:
  78.     void dirEntry(const char* _name, const char* _access, const char* _owner, const char* _group, const char* _date, int _size);
  79. private:
  80.     void parse_dirEntry( char *_data, int _len );
  81. public slots:
  82.     void readEvent( KSocket * );
  83.     void closeEvent( KSocket * );
  84. private:
  85.     void parse( char *_data, int _len );
  86.  
  87.     KSocket *sock;
  88.     bool connected;
  89.     char headerBuffer[11];
  90.     int cHeader;
  91.     bool bHeader;
  92.     char *pBody;
  93.     int cBody;
  94.     int bodyLen;
  95. };
  96.  
  97. #endif
  98.